package com.example.mapper.pc;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.dto.pc.GetProductLineMachineHzViewDto;
import com.example.entity.dto.pc.GetTYByProductIdHzViewDto;
import com.example.entity.dto.pc.PPRDto;
import com.example.entity.dto.pc.PPRListDto;
import com.example.entity.mysql.Productprocessresource;
import com.example.entity.vo.pc.GetProductLineMachineHzViewVo;
import com.example.entity.vo.pc.PPRVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-05-19
 */
@DS("mes")
public interface ProductprocessresourceMapper extends BaseMapper<Productprocessresource> {

    List<PPRVo> PPRList(PPRListDto dto);

    List<PPRVo> getList(@Param("params") List<String> params);

    List<PPRVo> getListHzVersion(@Param("params") List<String> params);

    List<Productprocessresource> getProductLineMachine(@Param("productId") String productId, @Param("processNo") String processNo, @Param("processId") String processId);

    List<Productprocessresource> getTYByProductId(String productId, String processNo, String processId, Integer resourceTypeId);

    List<Productprocessresource> selPPRList(PPRDto dto);

    List<Productprocessresource> selPPRListHzVersion(GetProductLineMachineHzViewDto dto);

    List<Productprocessresource> selPPRList2(PPRDto dto);

    List<Productprocessresource> selList();

    List<GetProductLineMachineHzViewVo> getProductLineMachineHzView(@Param("dto") GetProductLineMachineHzViewDto dto);

    List<Productprocessresource> getTYByProductIdHzView(@Param("dto") GetTYByProductIdHzViewDto dto);

    void delNoResourcegroupId();

}
